import requests

s = requests.Session()

url = "https://yunyan-test.frp.xxbu.cn/api/sasc-aggregation-property-web/login"
req_data = {"username": "125@qq.com",
            "password": "12345678",
            "userType": 0,
            "loginType": 0}

resp = requests.post(url, json=req_data)
# print(resp.json())
resp_dict = resp.json()
token = resp_dict["data"]["token"]
# print(token)


url1 = "https://yunyan-test.frp.xxbu.cn/api/sasc-aggregation-property-web/enterprise/info"
req_heder = {"token": token}
resp1 = s.get(url1, headers=req_heder)
print(resp1.json())
